/* 专门声明采购申请单的table 相关配置 */
layui.define(['fsoft'], function (exports) {
  var $ = layui.$
    , fsoft = layui.fsoft;
  var mainAction = {
    getCols: function () {
      var cols = [[
        { type: 'checkbox', fixed: 'left', align: 'center' },
        { type: 'numbers', fixed: 'left', title: '序号', align: 'center' },
        { fixed: 'left', field: 'loginAcct', title: '登录帐号', width: 120, align: 'center', style: "text-align:left" },
        { field: 'name', title: '姓名', width: 120, align: 'center', style: "text-align:left" },
        { field: 'mobile', title: '手机号', minWidth: 130, width: 150, align: 'center', style: "text-align:left" },
        { field: 'deptName', title: '所属部门', minWidth: 180, width: 200, align: 'center', style: "text-align:left" },
        { field: 'orgName', title: '所属单位', minWidth: 180, width: 200, align: 'center', style: "text-align:left" },
        {
          field: 'lockTypeName', title: '是否加锁', minWidth: 80, width: 100, align: 'center', style: "text-align:left", templet: function (d) {
            if (d.isLock != undefined && d.isLock == 1) {
              return '<span class="layui-badge fsoft-bg-danger">' + d.lockTypeName + '</span>';
            }
            return '<span class="layui-badge fsoft-bg-success">正常</span>';
          }
        },
        { field: 'status', title: '状态', width: 100, align: 'center', templet: '#switchStatus' },
        { fixed: 'right', title: '操作', toolbar: '#tbRowBar', width: 175, align: 'center', style: "text-align:left" }
      ]];
      return cols;
    }
  };
  exports('mainSysUserForm', mainAction);
});